'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  //渲染
  router.post('/api/redian', controller.home.redian)
  router.post('/api/drugList', controller.home.drugList)


  //删除
  router.post('/api/del', controller.home.del)
  router.post('/api/drugDel', controller.home.drugDel)


  //搜索
  router.post('/api/search', controller.home.search)
  router.post('/api/drugSearch', controller.home.drugSearch)


  //添加
  router.post('/api/rdadd', controller.home.rdadd)
  router.post('/api/drugadd', controller.home.drugadd)


  //编辑
  router.post('/api/rdset', controller.home.rdset)
  router.post('/api/drugset', controller.home.drugset)

};
